package top.zhangjianyong.blog.params.blog;

import jakarta.validation.constraints.NotNull;
import top.zhangjianyong.blog.validation.ListValue;

/**
 * @author zhangjianyong
 * @since 2024/8/5 下午6:45
 */
public record BlogStateChangeParam(
    @NotNull(message = "博客id不能为空号") Long id,
    @NotNull(message = "博客状态不能为空")
        @ListValue(
            values = {1, 2},
            message = "状态仅允许输入1-发布 2-隐藏")
        Integer status) {}
